﻿using System.Collections.Generic;
using NFine.Code;
using NFine.Data;
using NFine.Domain._02_ViewModel;
using NFine.Domain._03_Entity.InformationCenter;

namespace NFine.Domain._04_IRepository.InformationCenter
{
    public interface ISysMessagesRepository : IRepositoryBase<SysMessagesEntity>
    {
        int DeleteMessages(string keyValues);

        List<View_Messages> GetMessageList(Pagination pagination, bool isRead, bool isAdmin, string userId,
            string keyword = "");

        List<SysMessagesEntity> GetMemberUnReadList(int topCount, string userId);

        View_Messages GetViewModel(string keyValue);

        /// <summary>
        /// 获取导航图片
        /// </summary>
        /// <param name="appid"></param>
        /// <returns></returns>
        NavigationImageEntity getImages();
        /// <summary>
        /// 保存导航图片
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        int saveImages(NavigationImageEntity entity);
    }
}